package org.bultreebank.index.utils;
/**
 * Data model for system - real ids
 * @author Aneliya Ticheva
 *
 */
public class Pair<S,T> 
{
	private S first;
	private T second;
	
	public Pair()
	{
	}
	public Pair(S first, T second)
	{
		this.first = first;
		this.second = second;
	}
	
	public S getFirst()
	{
		return first;
	}
	public T getSecond()
	{
		return second;
	}
	public void setFirst(S f)
	{
		first = f;
	}
	public void setSecond(T s)
	{
		second = s;
	}
	public boolean isFirstEmpty()
	{
		if (first == null)
			return true;
		return false;
	}
	public boolean isSecondEmpty()
	{
		if (second == null)
			return true;
		return false;
	}
	public boolean isEmpty()
	{
		if (isFirstEmpty() && isSecondEmpty())
			return true;
		return false;
	}
	public void clear()
	{
		first = null;
		second = null;
	}
}
